<template>
	<view v-if="title">
		<view class="title" :style="{color: color,background: background}">{{title}}</view>
	</view>
</template>

<script>
	export default {
		name:"bottom-copyright",
		props: {
			color: {
				type: String,
				default: '#8f9295'
			},
			background: {
				type: String,
				default: '#F2F6FC'
			}
		},
		data() {
			return {
				title: ''
			};
		},
		created() {
			this.title = uni.getStorageSync('user') || '微步世界'
		}
	}
</script>

<style>
	.title{
		display: flex;
		justify-content: center;
		line-height: 40px;
		font-size: 12px;
		/* color: #8f9295;
		background-color: #F2F6FC; */
	}
</style>
